package com.android.lovingpet.mine.pet.view;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.android.lovingpet.R;
import com.android.lovingpet.bean.Pet;

public class PetActivity extends AppCompatActivity  {

    private PetFragment petFragment;
    private PetDetailsFragment petDetailsFragment;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pet);
        if (savedInstanceState==null)
        {
            getSupportFragmentManager().beginTransaction().add(R.id.pet_content,new PetFragment(),"pet").commit();
        }
        petFragment= (PetFragment) getSupportFragmentManager().findFragmentById(R.id.pet_content);
        petDetailsFragment=(PetDetailsFragment)getSupportFragmentManager().findFragmentById(R.id.pet_content);
    }

}
